package com.zhou.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.Getter;

@Getter
public enum QuesTypeEnum implements IEnum<Integer> {
    SINGLE_CHOICE(0,"单选题"),
    DOZEN_CHOICE(1,"多选题"),
    JUDGE(2,"判断题"),
    FILL_BLANK(3,"填空题")
    ;

    @EnumValue
    private final int value;
    private final String displayName;

    QuesTypeEnum(int value, String displayName) {
        this.value = value;
        this.displayName = displayName;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.displayName;
    }
}
